package com.whfc.mach.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Objects;

/**
 * @Description:
 * @author: xugcheng
 * @version: 1.0
 * @date: 2019/7/25 11:09
 */
@Setter
@Getter
@ToString
public class AppMachTypeDTO implements Serializable {

    private Integer id;

    private String name;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AppMachTypeDTO that = (AppMachTypeDTO) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(name, that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name);
    }
}
